package sandbox.vaadin.skiller.skillgroupmanager;

import sandbox.vaadin.Util;
import sandbox.vaadin.Util.Size;

import com.vaadin.ui.HorizontalSplitPanel;

public class SkillgroupManager
		extends HorizontalSplitPanel
{
	private static final long serialVersionUID = 1L;
	
	public SkillgroupManager()
	{
		super();
		init();
	}

	public SkillgroupManager(Util.Size size)
	{
		this();
		Util.setSize(this, size);		
	}

	public SkillgroupManager(Util.Size width, Util.Size height)
  {
		this();		
		Util.setSize(this, width, height);
  }

	private void init()
  {
		SkillgroupManagerContext context = new SkillgroupManagerContext();

		setFirstComponent(new SkillgroupTreeView(context, Size.FULL));
		setSecondComponent(new SkillTableView(context, Size.FULL));
  }
}